<td><?php 
		switch($alert->getModule()){
			case CommonValues::PROSPECT : 
			 	echo 'Prospect'; break;
			case CommonValues::FOLLOW_UP :
				echo 'Follow up'; break;
			case CommonValues::STUDENT :
				echo 'Student'; break;
		}
	?>
	</td>

	<td><?php 
    	switch($alert->getModule()){
    		case CommonValues::PROSPECT :
    				$po = PotentialityPeer::retrieveByPK($alert->getObjectId()); 				
    				if($po)
    					echo link_to($po->getFullname() ? $po->getFullname() : __('-'), 'potentiality/edit?id='.$alert->getObjectId()); 
    			break;
    		case CommonValues::FOLLOW_UP :
    				$fo = FollowUpPeer::retrieveByPK($alert->getObjectId()); 
    				if($fo)
    					echo link_to($fo->getFullname() ? $fo->getFullname() : __('-'), 'follow_up/edit?id='.$alert->getObjectId()); 
    			break;
    		case CommonValues::STUDENT :
    				$st = StudentPeer::retrieveByPK($alert->getObjectId()); 
    				if($st)
    					echo link_to($st->getFullname() ? $st->getFullname() : __('-'), 'student/edit?id='.$alert->getObjectId());
    			break;
    	} ?>
    </td>
    
	<td><?php echo $alert->getContent() ?></td>
    <td><?php echo ($alert->getAlertDate() !== null && $alert->getAlertDate() !== '') ? format_date($alert->getAlertDate(), "D") : '' ?></td>
    <td><?php $alert_types = CommonValues::getAlertType(); echo $alert_types[$alert->getAlertType()] ?></td>